package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户收藏对象 hy_user_favorite
 * 
 * @author ruoyi
 * @date 2025-06-23
 */
public class HyUserFavorite extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 收藏ID */
    private Long favoritesId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 影视ID */
    @Excel(name = "影视ID")
    private Long movieId;

    /** 收藏时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收藏时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date favoriteTime;

    public void setFavoritesId(Long favoritesId) 
    {
        this.favoritesId = favoritesId;
    }

    public Long getFavoritesId() 
    {
        return favoritesId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setMovieId(Long movieId) 
    {
        this.movieId = movieId;
    }

    public Long getMovieId() 
    {
        return movieId;
    }

    public void setFavoriteTime(Date favoriteTime) 
    {
        this.favoriteTime = favoriteTime;
    }

    public Date getFavoriteTime() 
    {
        return favoriteTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("favoritesId", getFavoritesId())
            .append("userId", getUserId())
            .append("movieId", getMovieId())
            .append("favoriteTime", getFavoriteTime())
            .toString();
    }
}
